<script>
import { h } from 'vue';
// vue3中函数式组件只能用函数式申明
function Heading(props,context){
    console.log(context);
    console.log("attrs ", context.attrs)
    console.log("slots", context.slots)
    return h(`h${props.level}`,context.attrs,context.slots);
}
Heading.props = ['level']

export default Heading
</script>